﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace myMoney.Finance
{
    public partial class Record : QT.Windows.Shell.GlassForm
    {
        #region Attributes

        public string type = "0";
        public DateTime start = DateTime.Now;
        public DateTime end = DateTime.Now;

        #endregion

        #region Form

        public Record()
        {
            InitializeComponent();
        }

        protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            ucRecord myRecord = new ucRecord();
            myRecord.type = type;
            myRecord.start = start;
            myRecord.end = end;
            myRecord.Dock = DockStyle.Fill;
            this.Controls.Add(myRecord);
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            this.statusStrip1.BackColor = AeroColor;
        }

        #endregion
    }
}
